<?php
$dbhost = '47.110.131.55';
$dbuser = 'root';
$dbpwd  ='sxy7788123456';
$dbName ='race';
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {}

if (isset($_GET['id']) && isset($_GET['table'])){
    
    $id=$_GET['id'];
    
    $table=$_GET['table'];
    
}else{
    exit;
}



echo $table,'....user table....',$id;
echo "<br /><br />";
 
$sql="update ".$table." set  ischong=1 where id=".$id."  ";
echo $sql;
$query=$mysqli->query($sql);


header('Location: chongfu.php?table='.$table); 
exit;

